// 04myCenter/08bizAuth/bizAuth.js
var co = require('../../resource/js/common.js')
var _this, _data
var app = getApp()
Page({
   /**
    * 页面的初始数据
    */
   data: {
      bizList: ''
   },
   /**
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
      _this = this
      _data = this.data
      this.getBizList()
   },
   //获取有员工的企业列表
   getBizList: function () {
      var url = 'jyhs/Admin/getBizList'
      co.getShareApi(url, {
         User_ID: app.Data.userInfo.User_ID
      }, function (res) {
         if (res.code == 0) {
            console.log(res)
            _this.setData({
               bizList: res.data
            })
         }
      })
   },

   toAuth:function(e){
      var Biz_ID = e.currentTarget.dataset.biz_id
      wx.navigateTo({
         url: '/04myCenter/08bizAuth/01enterpriseAuth/01enterpriseAuth?Biz_ID='+Biz_ID,
      })
   }
})